package com.item.service;

import com.item.dao.NotePraiseMapper;
import com.item.dao.model.NotePraise;
import com.item.dao.model.NotePraiseExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NotePraiseService {
    @Autowired
    private NotePraiseMapper notePraiseMapper;

    private static final Logger logger = Logger.getLogger(NotePraiseService.class);

    public int countByExample(NotePraiseExample example) {
        return this.notePraiseMapper.countByExample(example);
    }

    public NotePraise selectByPrimaryKey(String id) {
        return this.notePraiseMapper.selectByPrimaryKey(id);
    }

    public List<NotePraise> selectByExample(NotePraiseExample example) {
        return this.notePraiseMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.notePraiseMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NotePraise record) {
        return this.notePraiseMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NotePraise record) {
        return this.notePraiseMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NotePraiseExample example) {
        return this.notePraiseMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NotePraise record, NotePraiseExample example) {
        return this.notePraiseMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NotePraise record, NotePraiseExample example) {
        return this.notePraiseMapper.updateByExample(record, example);
    }

    public int insert(NotePraise record) {
        return this.notePraiseMapper.insert(record);
    }

    public int insertSelective(NotePraise record) {
        return this.notePraiseMapper.insertSelective(record);
    }
}